; Bugs?: If you find a problem with this file, send the file and version
; information (from above) and the problem description to:
;
; Internet: apple.bugs@applelink.apple.com
; AppleLink: APPLE.BUGS
;
;
IF &TYPE('__GXLAYOUT__') = 'UNDEFINED' THEN
__GXLAYOUT__ SET 1
IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
include 'ConditionalMacros.a'
ENDIF
IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
include 'GXTypes.a'
ENDIF
IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
;
; extern gxShape GXNewLayout(long textRunCount, const short textRunLengths[2147483647], const void *text[2147483647], long styleRunCount, const short styleRunLengths[2147483647], const gxStyle styles[2147483647], long levelRunCount, const short levelRunLengths[2147483647], const short levels[2147483647], const gxLayoutOptions *layoutOptions, const gxPoint *position)
;
IF ¨ GENERATINGCFM THEN
Macro
_GXNewLayout
move.w #$0000,D0
dc.w $A832
EndM
ELSE
IMPORT_CFM_FUNCTION GXNewLayout
ENDIF
;
; extern long GXGetLayout(gxShape layout, void *text, long *styleRunCount, short styleRunLengths[2147483647], gxStyle styles[2147483647], long *levelRunCount, short levelRunLengths[2147483647], short levels[2147483647], gxLayoutOptions *layoutOptions, gxPoint *position)
;
IF ¨ GENERATINGCFM THEN
Macro
_GXGetLayout
move.w #$0001,D0
dc.w $A832
EndM
ELSE
IMPORT_CFM_FUNCTION GXGetLayout
ENDIF
;
; extern void GXSetLayout(gxShape layout, long textRunCount, const short textRunLengths[2147483647], const void *text[2147483647], long styleRunCount, const short styleRunLengths[2147483647], const gxStyle styles[2147483647], long levelRunCount, const short levelRunLengths[2147483647], const short levels[2147483647], const gxLayoutOptions *layoutOptions, const gxPoint *position)
;
IF ¨ GENERATINGCFM THEN
Macro
_GXSetLayout
move.w #$0002,D0
dc.w $A832
EndM
ELSE
IMPORT_CFM_FUNCTION GXSetLayout
ENDIF
;
; extern void GXDrawLayout(long textRunCount, const short textRunLengths[2147483647], const void *text[2147483647], long styleRunCount, const short styleRunLengths[2147483647], const gxStyle styles[2147483647], long levelRunCount, const short levelRunLengths[2147483647], const short levels[2147483647], const gxLayoutOptions *layoutOptions, const gxPoint *position)
;
IF ¨ GENERATINGCFM THEN
Macro
_GXDrawLayout
move.w #$0003,D0
dc.w $A832
EndM
ELSE
IMPORT_CFM_FUNCTION GXDrawLayout
ENDIF
;
; extern void GXSetLayoutParts(gxShape layout, gxByteOffset oldStartOffset, gxByteOffset oldEndOffset, long newTextRunCount, const short newTextRunLengths[2147483647], const void *newText[2147483647], long newStyleRunCount, const short newStyleRunLengths[2147483647], const gxStyle newStyles[2147483647], long newLevelRunCount, const short newLevelRunLengths[2147483647], const short newLevels[2147483647])
; extern long GXGetLayoutParts(gxShape layout, gxByteOffset startOffset, gxByteOffset endOffset, void *text, long *styleRunCount, short styleRunLengths[2147483647], gxStyle styles[2147483647], long *levelRunCount, short levelRunLengths[2147483647], short levels[2147483647])
; extern long GXGetLayoutGlyphs(gxShape layout, gxGlyphcode *glyphs, gxPoint positions[2147483647], long advance[2147483647], gxPoint tangents[2147483647], long *runCount, short styleRuns[2147483647], gxStyle glyphStyles[2147483647])